package com.cssw.fyzb.wap.service;

import com.cssw.fyzb.base.web.domain.AjaxData;
import com.cssw.fyzb.base.web.domain.AjaxPage;
import com.cssw.fyzb.wap.model.vo.ParamVo;
import com.cssw.fyzb.wap.model.vo.TextKindListVo;
import com.cssw.fyzb.wap.model.vo.TextKindVo;
import com.ydn.appserver.MinaAppClient;
import com.ydn.appserver.Request;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Auther: yangyiqun
 * @Date: 2020/12/15 11:59
 * @Description:
 */
@Service
public class CommonService extends BaseService {


    @Autowired
    private MinaAppClient busiClient;

    public AjaxData<ParamVo> getParam(String code) {
        Request request = new Request("GetParam");
        request.setParameter("name", code);
        request.setParameter("force", true);
        return convertData(busiClient.send(request), ParamVo.class);
    }
}
